include "BaseService.thrift"
include "ImServiceCommon.thrift"

namespace cpp imserver
namespace java me.vzhi.messageService

service MessageService extends BaseService.BaseService {
  map<i64, i64> CreateMessage(1: ImServiceCommon.ImMessage message);
  string GetUnReadMessageInfo(1: i64 uid);
  string GetP2PHistoryMessage(1: i64 uid, 2: i64 another_uid, 3: i64 min_msg_id, 4: i32 limit);
  string GetP2PNewMessage(1: i64 uid, 2: i64 another_uid, 3: i64 max_msg_id, 4: i32 limit);
  string GetGroupHistoryMessage(1: i64 uid, 2: i64 group_id, 3: i64 min_msg_id, 4: i32 limit);
  string GetGroupNewMessage(1: i64 uid, 2: i64 group_id, 3: i64 max_msg_id, 4: i32 limit);
  void SetMessageReceiveStatus(1: i64 uid, 2: i64 msg_id, 3: i64 dialogue_id);
  void SetMessageReadStatus(1: i64 uid, 2: i64 msg_id, 3: i64 dialogue_id);
}

